home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #11 / Amiga Plus CD - 2004 - No. 11.iso / AmiSoft / Util / conv / Acvt.lha / Acvt 1.07 / sources / cfile.h < prev    next >
C/C++ Source or Header  |  2001-03-08  |  1KB  |  55 lines

  1. //    This program is free software; you can redistribute it and/or modify
  2. //    it under the terms of the GNU General Public License as published by
  3. //    the Free Software Foundation; either version 2 of the License, or
  4. //    any later version.
  5. //
  6. //    This program is distributed in the hope that it will be useful,
  7. //    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9. //    GNU General Public License for more details.
  10. //
  11. //    You should have received a copy of the GNU General Public License
  12. //    along with this program; if not, write to the Free Software
  13. //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  14. //
  15.  
  16. #include "wintypes.h"
  17. #include "cgenfile.h"
  18.  
  19. #ifndef __CFILE_H__
  20. #define __CFILE_H__
  21.  
  22.  
  23. class CFile : public CGenFile
  24. {
  25. public:
  26.     CFile();
  27.     ~CFile();
  28.  
  29.     BOOL Open( char* );
  30.     BOOL Create( char* );
  31.  
  32.     BOOL Read( void*, int, int* = NULL );
  33.     BOOL Write( void*, int, int* = NULL );
  34.  
  35.     BOOL Seek( long, int );
  36.     long GetLength() { return m_lLength; };
  37.     DWORD GetLastError() { return m_dwLastError; };
  38.     void Close();
  39.  
  40.     BOOL IsDirty() { return m_bIsDirty; };
  41.  
  42. private:
  43.     BOOL    m_bOpened;
  44.     BOOL    m_bIsDirty;
  45.  
  46.     int    m_hFile;
  47.  
  48.     DWORD m_dwLastError;
  49.  
  50.     LONG    m_lLength;
  51.  
  52. };
  53.  
  54. #endif //__CFILE_H__
  55.